//
//  GKZYUniversityAcceptTalbeViewCell.m
//  GKZYAid
//
//  Created by Tony Zhang on 16/3/15.
//  Copyright © 2016年 GKZYAid. All rights reserved.
//

#import "GKZYUniversityAcceptTalbeViewCell.h"
#import "MyDefine.h"


@implementation GKZYUniversityAcceptTalbeViewCell


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{


    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
    }
    return self;
}


-(void)configureTheCellWithMajorName:(NSString *)majorName AndDataArray:(NSArray *)array{

    UILabel *majorLab = [[UILabel alloc]initWithFrame:CGRectMake(10, 0, KmainScreenBoundsWidth/3, 40)];
    majorLab.text = majorName;
    majorLab.font = [UIFont systemFontOfSize:12];
    majorLab.textColor = [UIColor orangeColor];
    [self addSubview:majorLab];

    for (int i =0; i < 3; i ++) {
        UILabel *label = [[UILabel alloc]init];
        label.frame = CGRectMake(KmainScreenBoundsWidth/2+(KmainScreenBoundsWidth/2-10)*i/3, 0, (KmainScreenBoundsWidth/2-10)/3, 40);
        label.font = [UIFont systemFontOfSize:12];
        label.textAlignment = NSTextAlignmentCenter;
        if ([array[i] intValue] == -1) {
            label.text = @"--";
        }else{
            label.text =[NSString stringWithFormat:@"%@", array[i]];
        }
        [self addSubview:label];
    }

}





@end
